import { ref,onMounted,computed} from 'vue';
export default function()
{
    let sum = ref(0)
    function add(){
        sum.value++
    }
    let double = computed(()=>sum.value*2)
    
    onMounted(()=>{
      add()  
    })
    return {
        sum,
        double,
        add
    }
}


